package com.yanqu.road.entity.activity.feast.data;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;

import java.util.HashSet;
import java.util.Set;

/**
 * 区服采集数据，跨服商会分组在同一个
 */
public class CrossFeastServerScoreData extends DataObject {

    /**
     * 方便查改
     */
    private String uuid = "";

    private int activityId;

    /**
     * 区服列表
     */
    private Set<Long> serverIdList = new HashSet<>();

    private long serverScore;

    public CrossFeastServerScoreData() {

    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        if (!uuid.equals(this.uuid)) {
            this.uuid = uuid;
            setOp(DataStatus.Update);
        }
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }

    }

    public Set<Long> getServerIdList() {
        return serverIdList;
    }

    public void setServerIdList(Set<Long> serverIdList) {
        if (serverIdList == null) {
            return;
        }
        this.serverIdList = serverIdList;
        setOp(DataStatus.Update);
    }

    public long getServerScore() {
        return serverScore;
    }

    public void setServerScore(long serverScore) {
        if (this.serverScore != serverScore) {
            this.serverScore = serverScore;
            setOp(DataStatus.Update);
        }
    }
}
